﻿using System;
using Pansoft.HIME.Base.Enums;

namespace Pansoft.HIME.Base.ViewModels.Statistics
{
    public class QueryParam:IEquatable<QueryParam>
    {
        public QueryParam()
        {
            BeginTime = DateTime.Parse("1900-05-04T16:22:42.227594+08:00");
            EndTime = DateTime.Now;
        }
        public DateTime? BeginTime { get; set; }
        public DateTime? EndTime { get; set; }
        public int[] CounterIndex { get; set; }
        public string[] StaffId { get; set; }
        public string[] BusinessTypeId { get; set; }
        public EvaluationType[] EvalType { get; set; } //评价结果集合
        public TransactionStatus[] TranStatus { get; set; } //交易状态集合
        public int DateGroupType { get; set; }
        public string QueryFilter { get; set; }

        public int PageIndex { get; set; } //服务器端分页所需的页码参数
        public int PageSize { get; set; } //每页数据条数

        #region Implementation of IEquatable<QueryParam>
        /// <summary>如果两次查询的QueryParam相等（相对的），则直接从缓存中生成数据
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(QueryParam other)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
